﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewPlaneTicket.aspx.cs"
    Inherits="ServicesSheet_ViewPlaneTicket" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>机票申请</title>
   <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .css_SpecTD { padding-right:10px; }
    </style>
    <script type="text/javascript" >
    </script>    
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster"
                AllowAdd="True" AllowDelete="True" AllowPrint="True" AllowUpdate="True" AlwaysClose="False"
                AutoApplyForInsert="False" AutoRecordLock="False" AutoRecordLockMode="NoneReload"
                CacheDataSet="False" CommandName="" DataMember="Services_PlaneTicket" Eof="True"
                KeyValues="" LastIndex="-1" Marker="'" MasterDataSource="" PacketRecords="100"
                QuotePrefix="[" QuoteSuffix="]" RemoteName="ServiceSheet.Services_PlaneTicket"
                SelectCommand="" TableName="">
            </InfoLight:WebDataSource>
            <InfoLight:WebDataSource ID="WEmp" runat="server" SelectAlias="Usasdb" SelectCommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)">
            </InfoLight:WebDataSource>
            <InfoLight:WebFormView ID="WebFormView1" runat="server" Width="100%" DataSourceID="Master"
                LayOutColNum="2" BackColor="Silver" CellPadding="4" ForeColor="#333333" BorderColor="Window"
                BorderStyle="Groove" BorderWidth="2px" CaptionAlign="Top">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />              
                <Fields>
                    <InfoLight:FormViewField ControlID="tbptId" FieldName="ptId" />
                    <InfoLight:FormViewField ControlID="WebRefVal1" FieldName="EmpId" />
                    <InfoLight:FormViewField ControlID="tbApDate" FieldName="ApDate" />
                    <InfoLight:FormViewField ControlID="wdtpServices_PlaneTicketOutDateI" FieldName="OutDate" />
                    <InfoLight:FormViewField ControlID="tbDepartmentName" FieldName="DepartmentName" />
                </Fields>
                <RowStyle BackColor="#EFF3FB" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <ItemTemplate>
                    <fieldset>
                        <legend>机票申请：</legend>
                        <table class='container_table' cellspacing="0" border="0">
                            <colgroup>
                                <col width="70" />
                                <col width="200" />
                                <col width="70" />
                                <col width="200" />
                            </colgroup>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionIptId" runat="server" Text="单据编号:"></asp:Label>
                                </td>
                                <td class="css_SpecTD">
                                    <asp:TextBox ID="tbptId" Width="100%" runat="server" ReadOnly="True" MaxLength="4"
                                        Text='<%# Bind("ptId") %>'></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="CaptionIApDate" runat="server" Text="申请日期:"></asp:Label>
                                </td>
                                <td class="css_SpecTD">
                                    <asp:TextBox ID="tbApDate" Width="100%" runat="server" ReadOnly="True" MaxLength="20"
                                        Text='<%# Bind("ApDate","{0:yyyy-MM-dd}") %>'></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionempId" runat="server" Text="员工编码:"></asp:Label>
                                </td>
                                <td>
                                    <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                        BindingValue='<%# Bind("EmpId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                        DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                        MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                        ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="200px">
                                        <Columns>
                                            <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                            <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                            <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                            <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门" Width="100" />
                                        </Columns>
                                    </InfoLight:WebRefVal>
                                </td>
                                <td>
                                    <asp:Label ID="lDepartmentName" runat="server" Text="部门名称:"></asp:Label>
                                </td>
                                <td class="css_SpecTD">
                                    <asp:TextBox ID="tbDepartmentName" ReadOnly="true" Width="100%" runat="server" Text='<%# Bind("DepartmentName") %>'></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionIOutDate" runat="server" Text="出行日期:"></asp:Label>
                                </td>
                                <td class="css_SpecTD">
                                    <asp:TextBox ID="tbOutDate" Width="100%" ReadOnly="True" runat="server" MaxLength="10"
                                        Text='<%# Bind("OutDate","{0:yyyy-MM-dd}") %>'></asp:TextBox>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionIIsRoundTrip" runat="server" Text="是否双程:"></asp:Label>
                                </td>
                                <td>
                                    <asp:CheckBox ID="wvbServices_PlaneTicketIsRoundTripI" Enabled="false" runat="server"
                                        Checked='<%# Bind("IsRoundTrip") %>' />
                                </td>
                                <td>
                                    <asp:Label ID="CaptionIRtnDate" runat="server" Text="回程日期:"></asp:Label>
                                </td>
                                <td class="css_SpecTD">
                                    <asp:TextBox ID="tbRtnDate" Width="100%" ReadOnly="True" runat="server" MaxLength="10"
                                        Text='<%# Bind("RtnDate","{0:yyyy-MM-dd}") %>'></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionIPreWay" runat="server" Text="出行路线:"></asp:Label>
                                </td>
                                <td colspan="3" class="css_SpecTD">
                                    <asp:TextBox ID="tbPreWay" Width="100%" ReadOnly="True" runat="server" TextMode="MultiLine"
                                        Text='<%# Bind("PreWay") %>'></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionICause" runat="server" Text="出行事由:"></asp:Label>
                                </td>
                                <td colspan="3" class="css_SpecTD">
                                    <asp:TextBox ID="tbCause" Width="100%" ReadOnly="True" runat="server" TextMode="MultiLine"
                                        Text='<%# Bind("Cause") %>'></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionIReMark" runat="server" Text="备注:"></asp:Label>
                                </td>
                                <td colspan="3" class="css_SpecTD">
                                    <asp:TextBox ID="tbReMark" Width="100%" ReadOnly="True" runat="server" TextMode="MultiLine"
                                        Text='<%# Bind("ReMark") %>'></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </ItemTemplate>
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            </InfoLight:WebFormView>
            <InfoLight:WebFormView ID="WebFormView2" runat="server" Width="100%" DataSourceID="Master"
                LayOutColNum="2" BackColor="Silver" CellPadding="4" ForeColor="#333333" BorderColor="Window"
                BorderStyle="Groove" BorderWidth="2px" CaptionAlign="Top">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />              
                <RowStyle BackColor="#EFF3FB" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <ItemTemplate>
                    <fieldset>
                        <legend>机票申请：</legend>
                        <table>
                            <colgroup>
                                <col width="70" />
                                <col width="200" />
                            </colgroup>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionIInquirePrice" runat="server" Text="询价:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="tbInquirePrice" runat="server" Style="text-align: right;" ReadOnly="true"
                                        MaxLength="8" Text='<%# Bind("InquirePrice","{0:#,###.##}") %>'></asp:TextBox>
                                </td>
                            </tr>                           
                        </table>
                    </fieldset>
                </ItemTemplate>
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <InsertRowStyle BackColor="DarkTurquoise" />
            </InfoLight:WebFormView>
            <InfoLight:WebFormView ID="WebFormView3" runat="server" Width="100%" DataSourceID="Master"
                LayOutColNum="2" BackColor="Silver" CellPadding="4" ForeColor="#333333" BorderColor="Window"
                BorderStyle="Groove" BorderWidth="2px" CaptionAlign="Top">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <Fields>
                    <InfoLight:FormViewField ControlID="tbptId" FieldName="ptId" />
                </Fields>               
                <RowStyle BackColor="#EFF3FB" />
                <InsertItemTemplate>
                    &nbsp;
                </InsertItemTemplate>
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <ItemTemplate>
                    <fieldset>
                        <legend>机票申请：</legend>
                        <table>
                            <colgroup>
                                <col width="70" />
                                <col width="200" />
                                <col width="70" />
                                <col width="200" />
                            </colgroup>
                            <tr>
                                <td>
                                    <asp:Label ID="CaptionITicketPrice" runat="server" Text="实际票价:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="tbTicketPrice" runat="server" ReadOnly="true" Style="text-align: right;"
                                        MaxLength="8" Text='<%# Bind("TicketPrice","{0:#,###.##}") %>'></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="CaptionITicketAgent" runat="server" Text="机票代理:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="tbTicketAgent" runat="server" ReadOnly="true" MaxLength="50" Text='<%# Bind("TicketAgent") %>'></asp:TextBox>
                                </td>
                            </tr>                           
                        </table>
                    </fieldset>
                </ItemTemplate>
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <InsertRowStyle BackColor="DarkTurquoise" />
            </InfoLight:WebFormView>
        </div>
    </form>
</body>
</html>
